.class Lcom/waiqin365/h5/customer/b;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/waiqin365/h5/customer/WqCustomerSelect;


# direct methods
.method constructor <init>(Lcom/waiqin365/h5/customer/WqCustomerSelect;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/h5/customer/b;->a:Lcom/waiqin365/h5/customer/WqCustomerSelect;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    const/4 v3, 0x0

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/h5/customer/b;->a:Lcom/waiqin365/h5/customer/WqCustomerSelect;

    invoke-virtual {v0, v1}, Ljava/util/Observable;->addObserver(Ljava/util/Observer;)V

    new-instance v1, Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/h5/customer/b;->a:Lcom/waiqin365/h5/customer/WqCustomerSelect;

    invoke-static {v0}, Lcom/waiqin365/h5/customer/WqCustomerSelect;->a(Lcom/waiqin365/h5/customer/WqCustomerSelect;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v0

    const-class v2, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectActivity;

    invoke-direct {v1, v0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    new-instance v2, Lcom/waiqin365/lightapp/kehu/b/cc;

    invoke-direct {v2}, Lcom/waiqin365/lightapp/kehu/b/cc;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/h5/customer/b;->a:Lcom/waiqin365/h5/customer/WqCustomerSelect;

    invoke-static {v0}, Lcom/waiqin365/h5/customer/WqCustomerSelect;->b(Lcom/waiqin365/h5/customer/WqCustomerSelect;)Lorg/apache/cordova/CordovaArgs;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/h5/customer/b;->a:Lcom/waiqin365/h5/customer/WqCustomerSelect;

    invoke-static {v0}, Lcom/waiqin365/h5/customer/WqCustomerSelect;->b(Lcom/waiqin365/h5/customer/WqCustomerSelect;)Lorg/apache/cordova/CordovaArgs;

    move-result-object v0

    invoke-virtual {v0, v3}, Lorg/apache/cordova/CordovaArgs;->isNull(I)Z

    move-result v0

    if-nez v0, :cond_1

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/h5/customer/b;->a:Lcom/waiqin365/h5/customer/WqCustomerSelect;

    invoke-static {v0}, Lcom/waiqin365/h5/customer/WqCustomerSelect;->b(Lcom/waiqin365/h5/customer/WqCustomerSelect;)Lorg/apache/cordova/CordovaArgs;

    move-result-object v0

    const/4 v3, 0x0

    invoke-virtual {v0, v3}, Lorg/apache/cordova/CordovaArgs;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_1

    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v0, "superTradeType"

    invoke-virtual {v3, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string/jumbo v0, "superTradeType"

    invoke-virtual {v3, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string/jumbo v0, "superTradeType"

    invoke-virtual {v3, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/cc;->e:Ljava/lang/String;

    :cond_0
    const-string/jumbo v0, "tradeType"

    invoke-virtual {v3, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    const-string/jumbo v0, "tradeType"

    invoke-virtual {v3, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_1

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/cc;->d:Ljava/lang/String;

    const/4 v0, 0x1

    iput-boolean v0, v2, Lcom/waiqin365/lightapp/kehu/b/cc;->o:Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/waiqin365/h5/customer/b;->a:Lcom/waiqin365/h5/customer/WqCustomerSelect;

    iget-object v0, v0, Lcom/waiqin365/h5/customer/WqCustomerSelect;->a:Ljava/lang/String;

    iput-object v0, v2, Lcom/waiqin365/lightapp/kehu/b/cc;->g:Ljava/lang/String;

    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    const-string/jumbo v3, "param"

    invoke-virtual {v0, v3, v2}, Landroid/os/Bundle;->putSerializable(Ljava/lang/String;Ljava/io/Serializable;)V

    invoke-virtual {v1, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/h5/customer/b;->a:Lcom/waiqin365/h5/customer/WqCustomerSelect;

    invoke-static {v0}, Lcom/waiqin365/h5/customer/WqCustomerSelect;->a(Lcom/waiqin365/h5/customer/WqCustomerSelect;)Lorg/apache/cordova/WqCordovaActivity;

    move-result-object v0

    invoke-virtual {v0, v1}, Lorg/apache/cordova/WqCordovaActivity;->startActivity(Landroid/content/Intent;)V

    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method
